package util

import "time"

const PATTERN = "2006-01-02 15:04:05.000"
func GetCurDatetime() string {
	return GetCurDateWithPattern(PATTERN)
}

func GetCurDate() string {
	pattern := "2006-01-02"
	return GetCurDateWithPattern(pattern)
}

func GetCurDateWithPattern(pattern string) string {
	return time.Now().Format(pattern)
}
